﻿@inherits BulldogCMS.Core.MVC.BulldogWebViewPage<dynamic>
@using BulldogCMS.Core.Storage.DataTypes

@{
    ViewBag.Title = "Index";
    Layout = "~/Views.Shared._ManagerLayout.cshtml";
    BulldogCMS.Core.Storage.Node contentNode = ViewBag.SelectedNode;
}

@section Breadcrumb {
    <span>Content</span>
}

@section BigTitle {@contentNode.Name}

@section Rightmenu {
    <li id="versions-button"></li>
    <li id="add-button"></li>
    <li id="save-button"></li>
    <li id="refresh-button"></li>
    <li id="upload-button"></li>
    <li id="favadd-button"></li>
}

<ul id="tiles" class="clearfix">
    @foreach (var subNode in contentNode.Nodes)
    {
        <li class="tile green">
            <div class="tile-content">
                <h3>@(subNode.Name)</h3>
                <div class="tile-toolbar">
                    <div><a href="javascript:void()" class="delete-button"></a></div>
                    <div><a href="javascript:void()" class="delete-button"></a></div>
                </div>
                <a href="@Module.ResolveUrl("~/content?path=" + subNode.Path)" class="tile-link"></a>
            </div>
        </li>
    }
</ul>


